package Api;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class CollectionsSortDemo01 {
    public static void main(String[] args) {
        Integer [] array ={9,4,5,2,1,6};
        List<Integer> list= Arrays.asList(array);
        Collections.sort(list);
        System.out.println(list);
    }
}
